package edu.sctu.practice.class01.fengleilin.assign03.test03;

/**
 * Created by fll on 2015/10/22.
 */

/**
 * 表示人名,实现Cloneable接口
 */
public class Name implements Cloneable{

    public String firstName;
    public String middlName;
    public String lastName;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getMiddlName() {
        return middlName;
    }

    public void setMiddlName(String middlName) {
        this.middlName = middlName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    /**
     * 并实现clone方法
     * @return
     * @throws CloneNotSupportedException
     */
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
